/**
 * 
 */
function updateSalaryById(){
	var salary = {
			salaryid : 2,
			userid:4,
			username:3,
			base : 3,
			late:1,
			early:1,
			overtime:1,
			awardaddition:1,
			awardreason:1,
			fine:2,
			finereason:3
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/updateSalaryById",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(salary),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function insertSalary(){
	var salary = {
			userid:4,
			username:3,
			base : 3,
			late:1,
			early:1,
			overtime:1,
			awardaddition:1,
			awardreason:1,
			fine:2,
			finereason:3
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/insertSalary",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(salary),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function deleteSalaryById(){
	var salary = {
			salaryid : 1,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/deleteSalaryById",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(salary),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findAllSalary(){
	var salary = {
			userid:"",
			username:"",
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findAllSalary",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(salary),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findSalaryByid(){
	var salary = {
			salaryid : 1,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findSalaryByid",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(salary),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}